﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IMES.Common.Dtos
{

    public class Result
    {
        public string Messege { get; set; }
        public int Code { get; set; }
        public object Data { get; set; }
        public int Count { get; set; }
        
        public double Percen { get; set; }


    }
    public class ResultT<T> where T : class
    {
        public string Messege { set; get; }
        public int Code { get; set; }
        public List<T> Data { get; set; }
        public T Data1 { get; set; }

        public T Item { get; set; }
    }
    public class ResultPage<T> where T : class
    {
        public string Messege { set; get; }
        public int Code { get; set; }
        public T Item { get; set; }
        public int totalPage { get; set; }
        public int totalCount { get; set; }
        public List<T> Data { get; set; }
    }
    public class FileExportResult
    {
        public byte[] FileBytes { get; set; }
        public string MimeType { get; set; }
        public string FileName { get; set; }
    }

    public class ReturnResult
    {
        public ReturnResult()
        {
            Code = 0;
            Msg = "";
            Obj = "";
        }

        public ReturnResult(int code, string msg = "", object obj = null)
        {
            Code = code;
            Msg = msg;
            Obj = obj ?? "";
        }

        public int Code { get; set; }

        public string Msg { get; set; }

        public object Obj { get; set; }
    }


}
